// 判断当前时间是上午还是下午或晚上的公共方法
export const getTime = () => {
  let time = '';
  let hour = new Date().getHours();
  if (hour <= 9) {
    time = '早上'
  } else if (hour <= 12) {
    time = '上午'
  } else if (hour <= 18) {
    time = '下午'
  } else {
    time = '晚上'
  }
  return time
}